#include<iostream>
#include<Eigen/Dense>

using namespace std;
using namespace Eigen;

// array related operation

int main(int argc,char** argv){

    ArrayXXf a = ArrayXXf::Random(2,2);

    a *= 2;

    cout << "a = " << endl << a << endl << endl;
    cout << "a.abs() = " << endl << a.abs() << endl << endl;
    cout << "a.abs().sqrt() = " << endl << a.abs().sqrt() << endl << endl;
    cout << "a.min() = " << endl << a.min(a.abs().sqrt()) << endl << endl;
    return 0;
}
